﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MediaGarden.Pipeline;

namespace MediaGarden.Videos.Viewers
{
    /// <summary>
    /// Implementation of HTML5 video tag for WebM and Ogg formats (experimentally)
    /// TODO: This is where we need to start having Variations. So a WebM or Ogg format could be selected as variants for specific browsers.
    /// </summary>
    public class Html5VideoViewer : IMediaViewer
    {
        public string ViewerName
        {
            get { return "Html5Video"; }
        }

        public string ViewerDescription
        {
            get { return "HTML5 Video Player for WebM and Ogg Theora (browser compatibility varies)"; }
        }

        public IEnumerable<string> SupportedMediaFormats()
        {
            return new[]{
                "WebM",
                "OggTheora"
            };
        }

        public int ViewerPriority(MediaViewerContext context)
        {
            return 10;
        }
    }
}